package com.qf.hospital.system.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.qf.hospital.system.entity.SysRole;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SysRoleDTO extends SysRole {

    @JsonProperty(value = "LAY_CHECKED")
    private Boolean LAY_CHECKED;

    public SysRoleDTO(SysRole sysRole) {
        super.setRoleId(sysRole.getRoleId());
        super.setRoleName(sysRole.getRoleName());
        super.setRoleDesc(sysRole.getRoleDesc());
        super.setAvailable(sysRole.getAvailable());
    }
}
